<?php
defined( 'ABSPATH' ) || exit;

get_header();
?>
<div class="container">
  <article>
	<div class="art_title">
	  <div class="art_date"><span><?php the_time('Y-m-');?></span><strong><?php the_time('d');?></strong></div>
	  <h1><?php the_title()?></h1>
	  <a href="#" onClick="go()" class="back">返回</a> 
	  <script type="text/javascript">
		 function go(){window.history.go(-1);}
	  </script>
	</div>
	<div class="art_content">
		<div class="col-sm-5" style="float:right;margin-bottom:30px;">
			<div class="border-img">
				<img  src="<?php
				if(has_post_thumbnail()){
					the_post_thumbnail_url();
					echo '" alt="'.get_post_meta(get_post_meta( $post->ID, '_thumbnail_id',true ),'_wp_attachment_image_alt',true);
				}else{
					echo '/images/no-pic-news.jpg" alt="赫思模特';
				} 
				?>">
			</div>
		</div>
		<?php the_content();?>
	</div>
	<span style="font-size:20px;font-weight:500;" class="iconfont icon-eye">&nbsp;<?php echo getPostViews(get_the_ID()); ?></span>
	<?php if(has_tag()){the_tags('<span style="font-size:20px;font-weight:500;float:right;">',',','</span>');} ?>
  </article>
</div>

<?php
get_footer();
?>